package linkedlist;

/**
 * @author tong
 * @date 2021/12/22 14:28
 * 节点
 */
public class DoubleNode<E> {
    E data;
    DoubleNode<E> next;
    DoubleNode<E> pre;

    public DoubleNode(E data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "DoubleNode{" +
                "data=" + data +
                ", next=" + next +
                ", pre=" + pre +
                '}';
    }
}
